/**
 * Created by xiaolinzhang on 2016/11/2.
 */

var knex = null;
var mysqlcon = require('../conf/config')['mysql'];

module.exports = function () {
    if(knex){
        return knex;
    }

    var knex = require('knex')(mysqlcon);

    return knex;
}
